package org.game.module.datingbo.handler;

import org.game.db.bean.Player;
import org.game.protobuf.c2s.C2SDatingMsg;

import java.util.List;

/**
 * 约会逻辑处理者
 * Created by fxf on 2017/11/20.
 */
public interface DatingHandler {

    /**
     * 获取剧本
     */
    byte[] getScript(Player player,C2SDatingMsg.GetScriptMsg msg);

    /**
     * 对话
     */
    byte[] dialog(Player player, C2SDatingMsg.DialogueMsg msg);


    /**
     * 检查是否失败（失败规则）
     * @param player
     * @param roleCid
     * @param isLastNode 是否结束节点
     * @return
     */
    boolean isFail(Player player, int roleCid, boolean isLastNode);

}
